<html>
<head>
    <title>Ankle Biter's Pet List</title>
   <link rel="stylesheet" href="<?php echo base_url();?>/system/application/css/styles.css" type="text/css" media="screen"/>
</head>
<body>
<div class="center">


<table style="width:1000px; height: 150px;" border="1">
    <tr>

        <td>
            <img src="<?php echo base_url();?>/system/application/images/petshopbanner.jpg" alt="Ankle Biter's Pet Shop" />
        </td>
        </tr>
</table>
<br />
 <table class="right" border="1">
    <tr>
        <td class="right">

   <form name="about_us_page_button_form" action="display_about_us" method="POST" style="display: inline;">
           <input type="submit" value="About us" name="about_us_page_button" /></form>
           <form name="admin_login_page_button_form" action="display_site_update" method="POST" style="display: inline;">
           <input type="submit" value="Site Administration" name="site_update_page_button" /></form>
        </td>
    </tr>
 </table>
<br />
     <table style="width:100%;" border="2">
    <tr>
        <td class="style2" style="text-align: center">
            List of Available Pets
        </td>
    </tr>
    <tr>
        <td style="float:right;"><form name="search_form" action="display_search_results" method="POST" style="display: inline;">
                    Search for a pet: <input type="text" name="search_string_input" maxlength="50" style="border:2px solid gray;"/>
                    <input type="submit" value="GO" name="search_button" /></form>
        </td>
    </tr>

    <tr>
    <td style="background-color:#b5e619;">
    <table border="1" cellpadding="3" cellspacing="3" class="petlist">

           <tr>
           <td></td>
           <td>Name:</td>
           <td >Description:</td>

           <td>Notes:</td>
           </tr>
<form name="details_form" action="display_pet_details" method="POST" style="display: inline;">
 <?php foreach($pets as $pet): ?>        
<tr>
    <td><input type="image" src="http://2007.ispace.ci.fsu.edu/~jdw08e/LIS4368/Pet_Shop/system/application/images/<?php echo $pet->pic1; ?>" 
                              alt="Submit Button" name="name_input" value="<?php echo $pet->name; ?>"/></td>
    <td><?php echo $pet->name; ?></td>
        <td><?php echo $pet->descript; ?></td>
        <td><?php echo $pet->notes; ?></td>
        </tr>  
         <?php endforeach; ?>
</form>
           </table>
           </td>
    </tr>
           
</table>


</div>
</body>
</html>
